

package cn.nubia.admin.sysconfig.bean;


import cn.nubia.admin.common.mybatis.annotations.Id;
import cn.nubia.admin.common.mybatis.annotations.Table;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * Created by justin on 15/6/30.
 * CREATE TABLE `nb_dict_field` (
 * `field_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '字段id',
 * `field_name` varchar(50) DEFAULT NULL COMMENT '字段名',
 * `field_title` varchar(50) DEFAULT NULL COMMENT '字段标题',
 * `deleted` tinyint(4) DEFAULT NULL COMMENT '是否删除（1-删除 0-正常）',
 * `modify_enable` tinyint(4) DEFAULT NULL COMMENT '是否允许修改（1-允许 0-不允许）',
 * `create_admin_id` int(11) DEFAULT NULL COMMENT '创建人的管理员id',
 * `create_admin_name` varchar(20) DEFAULT NULL COMMENT '创建人的管理员名称',
 * `modify_admin_id` int(11) DEFAULT NULL COMMENT '修改人的管理员id',
 * `modify_admin_name` varchar(20) DEFAULT NULL COMMENT '修改人的管理员名称',
 * `create_time` int(11) DEFAULT NULL COMMENT '创建时间',
 * `last_modify_time` int(11) DEFAULT NULL COMMENT '最后修改时间',
 * PRIMARY KEY (`field_id`)
 * ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='字典表字段';
 */
@Table(value = "nb_dict_field")
public class DictField implements Serializable {

    private static final long serialVersionUID = -8244661101951482489L;


    public static final String COLUMN_FIELDNAME = "fieldName";
    public static final String COLUMN_CREATETIME = "createTime";



    /**
     * 模板类型为"template_type"
     */
    public static final String DICTFIELDITEM_TEMPLATE_NAME="template_type";
    public static final String DICTFIELDITEM_SOFT_ITEMS_SAFE="soft_items_safe";
    public static final String DICTFIELDITEM_SOFT_RESOURCE="soft_resource";
    public static final String DICTFIELDITEM_CLAIM="claim_type";//举报类型
    public static final String DICTFIELDITEM_LANGUAGE="language";//language
    public static final String DICTFIELDITEM_DEVICETYPE="device_type";//设备类型



    @Id(value = "field_id")
    private Integer id;
    @NotBlank(message = "枚举名不能为空")
    @Size(max=50,message = "名称不能超过50字")
    private String fieldName;//字段名
    @NotBlank(message = "枚举标题不能为空")
    @Size(max=50,message = "标题不能超过50字")
    private String fieldTitle;//字段标题
    private Integer deleted;//是否删除（1-删除 0-正常）
    private Integer modifyEnable;//是否允许修改（1-允许 0-不允许）
    private Integer createAdminId;//创建管理员id
    private String createAdminName;//创建人的管理员名称
    private Integer modifyAdminId;//修改人的管理员id
    private String modifyAdminName;//修改人的管理员名称
    private Integer createTime;//创建时间
    private Integer lastModifyTime;//最后修改时间

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getFieldName() {
        return fieldName;
    }

    public void setFieldName(String fieldName) {
        this.fieldName = fieldName;
    }

    public String getFieldTitle() {
        return fieldTitle;
    }

    public void setFieldTitle(String fieldTitle) {
        this.fieldTitle = fieldTitle;
    }

    public void setDeleted(Integer deleted) {
        this.deleted = deleted;
    }

    public void setModifyEnable(Integer modifyEnable) {
        this.modifyEnable = modifyEnable;
    }

    public Integer getCreateAdminId() {
        return createAdminId;
    }

    public void setCreateAdminId(Integer createAdminId) {
        this.createAdminId = createAdminId;
    }

    public String getCreateAdminName() {
        return createAdminName;
    }

    public void setCreateAdminName(String createAdminName) {
        this.createAdminName = createAdminName;
    }

    public Integer getModifyAdminId() {
        return modifyAdminId;
    }

    public void setModifyAdminId(Integer modifyAdminId) {
        this.modifyAdminId = modifyAdminId;
    }

    public String getModifyAdminName() {
        return modifyAdminName;
    }

    public void setModifyAdminName(String modifyAdminName) {
        this.modifyAdminName = modifyAdminName;
    }

    public Integer getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Integer createTime) {
        this.createTime = createTime;
    }

    public Integer getLastModifyTime() {
        return lastModifyTime;
    }

    public Integer getDeleted() {
        return deleted;
    }

    public Integer getModifyEnable() {
        return modifyEnable;
    }

    public void setLastModifyTime(Integer lastModifyTime) {
        this.lastModifyTime = lastModifyTime;
    }
}
